<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    "use strict";

    function _inheritsLoose(subClass, superClass) {
        subClass.prototype = Object.create(superClass.prototype);
        subClass.prototype.constructor = subClass;
        subClass.__proto__ = superClass;
    }

    var Animal = function Animal(name) {
        this.name = name;
    };

    var Person = function (_Animal) {
        _inheritsLoose(Person, _Animal);

        function Person(name, age) {
            var _this;

            _this = _Animal.call(this, name) || this;
            _this.age = age;
            return _this;
        }

        var _proto = Person.prototype;

        _proto.sayAge = function sayAge() {
            console.log(this.age);
        };

        return Person;
    }(Animal);
</script>
</body>
</html>
